﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Mindfor.Web.Models;

namespace Mindfor.Web.Modules.Search
{
	/// <summary>
	/// Contains information for search view.
	/// </summary>
	public class SearchModel
	{
		/// <summary>
		/// Gets or sets search text.
		/// </summary>
		[DisplayName("Текст")]
		public string Text { get; set; }

		/// <summary>
		/// Gets or sets search results.
		/// </summary>
		public List<SearchResult> Results { get; set; }

		/// <summary>
		/// Initializes new instance.
		/// </summary>
		public SearchModel()
		{
		}

		/// <summary>
		/// Initializes new instance.
		/// </summary>
		/// <param name="text">Search text.</param>
		public SearchModel(string text)
		{
			Text = text;
		}
	}
}
